home *** CD-ROM | disk | FTP | other *** search
/ Belgian Amiga Club - ADF Collection / BS1 part 23.zip / BS1 part 23 / Superbase 4 ser 12C00584^1.adf / Trading / MENU.SBP < prev    next >
Text File  |  1991-03-13  |  15KB  |  648 lines

  1. SBP
  2.  ÿ½     MENU                                
  3.  ÿ½     Superbase Demonstration Trading System 
  4.  ÿ½     Master Menu Program
  5.  ÿ½     Last updated Mar 14, 91
  6.  
  7.  ÿ³ÿ_ÿwferror 
  8.  
  9. mloop:ÿ½ Menu item selection
  10.  ÿßÿe
  11.  ÿ¡ret%ÿp
  12. ÿ½ Returning from another routine
  13. ÿ¡ÿœÿbanner$ÿpÿ´ÿœbanner$ÿ^ÿœ
  14. ÿ¡ma%ÿ
  15. 4ÿpÿvsmenu
  16.  ÿ^
  17. ÿ½ First time thru
  18. banner$ÿ"banner2"
  19. ÿvsinit
  20. banner$ÿ"banner"
  21.  ÿ’ÿ¡
  22.  ÿ¬ÿ³ma%,mb%
  23.  ÿÊÿËss1$
  24.  
  25.  ÿ¡ret%ÿ0ÿpÿßÿ³:ÿÏÿßÿÿ¬
  26.  ÿØÿOma%
  27. ÿ¡h2%ÿÿ:(ÿR)ÿpÿvshead
  28.  ÿÙ
  29.  ÿ¡ma%ÿ
  30. 4ÿpÿ¬ÿ…
  31.  ret%ÿ1
  32.  ÿ³ma%ÿwm1,m2,m3,m4,m5,m6
  33.  
  34. sinit:ÿ½ Initialize first time thru
  35.  ÿ†ÿt:ÿÊÿfÿ³:ÿ²"z-99999.00"
  36.  ÿ½ STATUS ON 
  37.  h3$ÿ"Superbase Demonstration Trading System "
  38.  ÿÊÿË"Initializing application"
  39.  ÿÊÿÂÿŸ"Trading System"
  40.  ÿvshead
  41.  ÿ´ÿœbanner$
  42.  ÿ´ÿ™"TRANS":ÿ´ÿ™"CTRL":ÿ½ opens all files
  43.  ÿ×pstk$(12),pstk%(12):ÿ½ key arrays for multi-record screens
  44.  
  45.  ÿ½ Dialog messages
  46.  ms1$ÿ"Is entry correct?"
  47.  ms2$ÿ"Continue with data entry?"
  48.  ms3$ÿ"Do you wish to reprint?"
  49.  ms4$ÿ"Has all output been correctly printed?"
  50.  ms5$ÿ"Select another record?"
  51.  ms6$ÿ"Select another line?"
  52.  ms7$ÿ"Select index sequence"
  53.  ms8$ÿ"Record already exists with this key"
  54.  ms9$ÿ"Press OK to make another selection"
  55.  ms10$ÿ"Report to printer?"
  56.  ms11$ÿ"Report line too long for printer"
  57.  ms12$ÿ"Try using a smaller font"
  58.  ms13$ÿ"Include external images and text?"
  59.  ms14$ÿ"Deleting record "
  60.  ms15$ÿ"Are you sure?"
  61.  ms16$ÿ"Print (c)urrent record, (s)elected or (a)ll records"
  62.  ms17$ÿ"(d)isplay or (p)rint?"
  63.  ms18$ÿ"Cannot find related client record"
  64.  ms19$ÿ"Transaction record found"
  65.  ms20$ÿ"Please delete related transaction(s)"
  66.  ms21$ÿ"Break in program"
  67.  ms22$ÿ"Do you wish to resume?"
  68.  ms23$ÿ"Select query to be loaded"
  69.  ms24$ÿ"Enter query name"
  70.  ms25$ÿ"Cannot edit or delete"
  71.  ms26$ÿ"Batch totals do not agree"
  72.  ms27$ÿ"Amount must be positive"
  73.  ms28$ÿ"Batch totals agree"
  74.  ms29$ÿ"Do you wish to edit batch?"
  75.  ms30$ÿ"Do you have a VGA display adapter?"
  76.  
  77.  ms311$ÿ"This produces certificate advices for"
  78.  ms312$ÿ"transactions with certificate numbers"
  79.  ms321$ÿ"This produces contract notes"
  80.  ms322$ÿ"for all new transactions"
  81.  
  82.  ms411$ÿ"This updates stocks with year highs"
  83.  ms421$ÿ"This updates stocks with year lows"
  84.  ms431$ÿ"This updates transactions to indicate"
  85.  ms432$ÿ"that certificates have been sent"
  86.  ms442$ÿ"that contract notes have been sent"
  87.  ms451$ÿ"This resets document sent flags to N"
  88.  ms452$ÿ"for transaction nos. 000020 and up"
  89.  
  90.  ÿ½ Status line messages
  91.  ss1$ÿ"Select a pulldown menu option"
  92.  ss2$ÿ"Select a pushbutton option"
  93.  ss3$ÿ"Enter data for new record"
  94.  ss4$ÿ"Use TAB or click on field to be edited. ESC to stop."
  95.  ss6$ÿ"Printing"
  96.  ss7$ÿ"Press the Space Bar to continue"
  97.  ss8$ÿ"Creating temporary mailmerge file"
  98.  ss9$ÿ"Enter new value(s)"
  99.  ss10$ÿ"Browse in "
  100.  ss11$ÿ" sequence: use STOP to end browsing"
  101.  ss12$ÿ"Select line to be deleted"
  102.  ss13$ÿ"Select pushbutton or click on line to edit"
  103.  ss14$ÿ"Press any key or click on mouse button to continue"
  104.  ss15$ÿ"Create or edit query. Use ENTER to stop"
  105.  ss16$ÿ"Checking whether referenced elsewhere"
  106.  ss17$ÿ"Updating client trading balance"
  107.  ss18$ÿ"Press ENTER for default values"
  108.  ss19$ÿ"Updating"
  109.  ss20$ÿ"Enter batch total"
  110.  ss21$ÿ"Move the pointer over a transaction line and click"
  111.  ÿ¬ÿ…
  112.  
  113. smenu:ÿ½ Define pulldown menus
  114.     ÿ½ Flags in CTRL do graying for doc production/update cycles
  115.  ÿ¬1,0,1,"&File"
  116.  ÿ¬1,1,1,"&Clients"
  117.  ÿ¬1,2,1,"&Stocks"
  118.  ÿ¬1,3,1,"C&ountries"
  119.  ÿ¬1,4,1,"C&urrencies"
  120.  ÿ¬1,5,tran.CTRL,"&Transactions"
  121.  ÿ¬1,6,1,"&Exit"
  122.  
  123.  ÿ¬2,0,1,"&Daily"
  124.  ÿ¬2,1,1,"&Currency Rates"
  125.  ÿ¬2,2,1,"&Stock Prices"
  126.  ÿ¬2,3,cent.CTRL,"Certificate &Nos"
  127.  ÿ¬2,4,1,"Cash &Receipts"
  128.  ÿ¬2,5,1,"Cash &Payments"
  129.  
  130.  ÿ¬3,0,1,"D&ocuments"
  131.  ÿ¬3,1,cert.CTRL,"&Certificates":
  132.  ÿ¬3,2,cont.CTRL,"C&ontract Notes"
  133.  ÿ¬3,3,1,"&Statements"
  134.  
  135.  ÿ¬4,0,1,"&Update"
  136.  ÿ¬4,1,1,"Stock &Highs"
  137.  ÿ¬4,2,1,"Stock &Lows"
  138.  ÿ¬4,3,ceru.CTRL,"&Certs Sent"
  139.  ÿ¬4,4,conu.CTRL,"&Notes Sent"
  140.  ÿ¬4,5,1,"&Reset"
  141.  
  142.  ÿ¬5,0,1,"&Query"
  143.  ÿ¬5,1,1,"&Run"
  144.  ÿ¬5,2,1,"&New"
  145.  ÿ¬5,3,1,"&Open"
  146.  ÿ¬5,4,1,"&Edit"
  147.  ÿ¬5,5,1,"&Save"
  148.  
  149.  ÿ¬6,0,1,"&Reports"
  150.  ÿ¬6,1,1,"&Traded Stocks"
  151.  ÿ¬6,2,1,"Stock &Highs"
  152.  ÿ¬6,3,1,"Stock &Lows"
  153.  ÿ¬6,4,1,"T&rading Balances"
  154.  ÿ¬6,5,1,"-----------------"
  155.  ÿ¬6,6,1,"Telephone &Nos"
  156.  ÿ¬6,7,1,"Client &Balances"
  157.  ÿ¬6,8,1,"&Cash Audit"
  158.  ÿÃ
  159.  
  160. shead:ÿ½ Set heading every minute during menu wait
  161.  h1$ÿÿ(ÿQ,"mmm dd, yy"):h2$ÿÿ7(ÿR,"hh:mm am")
  162.  h2%ÿÿ:(ÿR):h3%ÿ(50ÿÿ/(h3$))ÿ2
  163.  h4$ÿh1$ÿÿ'(h3%)ÿh3$ÿÿ'(h3%)ÿh2$
  164.  ÿÊÿŸh4$
  165.  ÿÃ
  166.  
  167. m1:ÿ½ ma%= 1 File menu options 
  168.  selkey$ÿ"":selkey%ÿ0
  169.  ÿ³mb%ÿwstkf,stkf,m13,m13,stkf,m16
  170.  
  171. m13:ÿ½ File Countries, Currencies
  172.  ÿ„"stkfo"
  173.  
  174. m16:ÿ½ File Exit
  175.  ÿ†ÿt:ÿÊÿŸ"":ÿÊÿÂÿŸ"":ÿ’
  176.  
  177. m2:ÿ½ ma%=2 Daily menu options
  178.  ÿ³mb%ÿwm21,m21,m21,m24,m24
  179.  
  180. m21:ÿ½ Daily Currency rates, Stock prices, Certificate numbers 
  181.  ÿ„"stkdc"
  182.  
  183. m24:ÿ½ Daily Cash receipts, Cash payments
  184.  ÿ„"stkdr"
  185.  
  186. m3:ÿ½ ma%=3 Documents menu options
  187.  ÿ³mb%ÿvm31,m31,stkf
  188.  ÿwmloop
  189.  
  190. m31:ÿ½ Documents Certificate advices, Contract notes
  191.  ÿÉÿæmb%
  192.  ÿæ1
  193. ÿÂms311$,ms312$,140,a%
  194.  ÿæ2
  195. ÿÂms321$,ms322$,140,a%
  196.  ÿ’ÿÉ
  197.  ÿ¡a%ÿ0ÿpÿÃ
  198.  
  199.  ÿßÿe
  200.  ÿÊÿËss8$
  201.  ÿ¡mb%ÿ1ÿp
  202. ÿ½ Certificate advices
  203. docf$ÿ"certs":letf$ÿ"lecerts"
  204. ÿ¡ÿJ("certs.sbf")ÿpÿ´ÿ™docf$:ÿ¾ÿ™docf$
  205. ÿÉCustomer_Ref.TRANS,Quantity.TRANS,Certificate_No.TRANS,Title.CLIENTS,Firstname.CLIENTS,
  206. Lastname.CLIENTS,Company.CLIENTS,Street.CLIENTS,Address.CLIENTS,
  207. City.CLIENTS,State.CLIENTS,Zip_Code.CLIENTS,Country.CLIENTS,
  208. Company Name.STOCKS,Stock_Type
  209. ÿÐCustomer_Ref.TRANSÿCustomer_Ref.CLIENTSÿ Stock_Key.TRANSÿStock_Key.STOCKSÿ Trans_Type.TRANSÿ"b"ÿ Certificate_No.TRANSÿ""ÿ Cert_Sent_yn.TRANSÿ"n"
  210. ÿµStock_Key.TRANS,Certificate_No.TRANS
  211. ÿqÿ™docf$
  212. ÿ’ÿÉ
  213.  ÿ^ÿ¡mb%ÿ2ÿp
  214. ÿ½ Contract notes
  215. docf$ÿ"invs":letf$ÿ"leinvs"
  216. ÿ¡ÿJ("invs.sbf")ÿpÿ´ÿ™docf$:ÿ¾ÿ™docf$
  217. ÿÉStock_Key.TRANS,Customer_Ref.TRANS,Transaction ref,Trans_Type,Trans_Desc,Trans_Date,Settlement_Date,ÿ(Quantity.TRANS,6,0)ÿU"QTY",ÿ(Stock_Price.TRANS,6,2)ÿU"PR",Currency.TRANS,USD Xrate.TRANS,
  218. ÿ(ÿ(USD Value.TRANS),6,2)ÿU"USDV",(Comm_Value)ÿU"Com",ÿ(ÿ(USD Value.TRANSÿComm_Value),6,2)ÿU"TV",&24(Client.CLIENTS)ÿU"Client",Company.CLIENTS,Street.CLIENTS,Address.CLIENTS,City.CLIENTS,
  219. State.CLIENTS,Zip_Code.CLIENTS,Country.CLIENTS,Company Name.STOCKS,Stock_Type,Exchange
  220. ÿÐCustomer_Ref.TRANSÿCustomer_Ref.CLIENTSÿ Stock_Key.TRANSÿStock_Key.STOCKSÿ Invoice_Sent_yn.TRANSÿ"n"
  221. ÿµCustomer_Ref.TRANS,Transaction ref
  222. ÿqÿ™docf$
  223. ÿ’ÿÉ
  224.  ÿ’ÿ¡
  225.  ÿ´ÿ™docf$
  226.  ÿvsdorp:ÿ½ display or print
  227.  ÿ¡a%ÿ0ÿpÿ¾ÿ™docf$:ÿÃ
  228.  
  229. m312:ÿ½ Display or print merge documents
  230.  ÿ¨ÿoletf$:ÿÉÿ`
  231.  ÿØÿOÿB(docf$)
  232. ÿ¡p$ÿ"p"ÿpÿ­ÿoletf$
  233. ÿ¡p$ÿ"d"ÿpÿ{ÿoÿ­
  234. ÿ½ WAIT FOR 2
  235. ÿÉÿ±
  236.  ÿÙ
  237.  b%ÿ0
  238.  ÿÂms4$,"",130,a%
  239.  ÿ¡a%ÿp
  240. ÿ½ Update CTRL file and re-set menus grayed=0 active=1 
  241. ÿ™"ctrl"
  242. ÿ¡mb%ÿ1ÿp
  243. tran.CTRLÿ0:cent.CTRLÿ0:cert.CTRLÿ0:ceru.CTRLÿ1
  244. ÿ¬1,5,tran.CTRL,"&Transactions"
  245. ÿ¬2,3,cent.CTRL,"Certificate &Nos"
  246. ÿ¬3,1,cert.CTRL,"&Certificates"
  247. ÿ¬4,3,ceru.CTRL,"&Certs Sent"
  248. ÿ^ÿ¡mb%ÿ2ÿp
  249. tran.CTRLÿ0:cont.CTRLÿ0:conu.CTRLÿ1
  250. ÿ¬1,5,tran.CTRL,"&Transactions"
  251. ÿ¬3,2,cont.CTRL,"C&ontract Notes"
  252. ÿ¬4,4,conu.CTRL,"&Notes Sent"
  253. ÿ’ÿ¡
  254. ÿÌ
  255.  ÿ^
  256. ÿÂms3$,"",135,b%
  257. ÿ¡b%ÿ0ÿpÿ¾ÿ™docf$
  258.  ÿ’ÿ¡
  259.  ÿ¡b%ÿ1ÿwm312
  260.  ÿÃ
  261.  
  262. m4:ÿ½ ma%=4 Update menu options
  263.  ÿ³mb%ÿvm41,m42,m43,m44,m45
  264.  ÿwmloop
  265.  
  266. m41:ÿ½ Update New Highs
  267.  ÿÂms411$,"",140,a%
  268.  ÿ¡a%ÿp
  269. ÿßÿe
  270. ÿÊÿËss19$
  271. ÿÍYear_High.STOCKSÿPrice Middle.STOCKS:Date of High.STOCKSÿPrice Date.STOCKS
  272. ÿÐPrice Middle.STOCKSÿYear_High.STOCKSÿÿ6(Price Date.STOCKS)ÿÿ6(Date of High.STOCKS)
  273. ÿ’ÿÍ
  274.  ÿ’ÿ¡
  275.  ÿÃ
  276.  
  277. m42:ÿ½ Update New Lows
  278.  ÿÂms421$,"",140,a%
  279.  ÿ¡a%ÿp
  280. ÿßÿe
  281. ÿÊÿËss19$
  282. ÿÍYear_Low.STOCKSÿPrice Middle.STOCKS:Date of Low.STOCKSÿPrice Date.STOCKS
  283. ÿÐPrice Middle.STOCKSÿ    Year_Low.STOCKSÿÿ6(Price Date.STOCKS)ÿÿ6(Date of Low.STOCKS)
  284. ÿ’ÿÍ
  285.  ÿ’ÿ¡
  286.  ÿÃ
  287.  
  288. m43:ÿ½ Update Certs Sent
  289.  ÿÂms431$,ms432$,140,a%
  290.  ÿ¡a%ÿp
  291. ÿßÿe
  292. ÿÊÿËss19$
  293. ÿÍCert_Sent_YN.TRANSÿ"y"
  294. ÿÐCertificate_No.TRANSÿ""ÿ Cert_Sent_YN.TRANSÿ"n"
  295. ÿ’ÿÍ
  296. 
  297. ÿ½ Update CTRL file and re-set menus grayed=0 active=1 
  298. ÿ™"ctrl"
  299. tran.CTRLÿ1:cent.CTRLÿ1:cert.CTRLÿ1:ceru.CTRLÿ0
  300. ÿ¬1,5,tran.CTRL,"&Transactions"
  301. ÿ¬2,3,cent.CTRL,"Certificate &Nos"
  302. ÿ¬3,1,cert.CTRL,"&Certificates"
  303. ÿ¬4,3,ceru.CTRL,"&Certs Sent"
  304. ÿÌ
  305.  ÿ’ÿ¡
  306.  ÿÃ
  307.  
  308. m44:ÿ½ Update Contract Notes Sent
  309.  ÿÂms431$,ms442$,140,a%
  310.  ÿ¡a%ÿp
  311. ÿßÿe
  312. ÿÊÿËss19$
  313. ÿÍInvoice_Sent_yn.TRANSÿ"y"ÿÐInvoice_Sent_yn.TRANSÿ"n"
  314. ÿ’ÿÍ
  315. 
  316. ÿ½ Update CTRL file and re-set menus grayed=0 active=1 
  317. ÿ™"ctrl"
  318. tran.CTRLÿ1:cont.CTRLÿ1:conu.CTRLÿ0
  319. ÿ¬1,5,tran.CTRL,"&Transactions"
  320. ÿ¬3,2,cont.CTRL,"C&ontract Notes"
  321. ÿ¬4,4,conu.CTRL,"&Notes Sent"
  322. ÿÌ
  323.  ÿ’ÿ¡
  324.  ÿÃ
  325.  
  326. m45:ÿ½ Resets document flags in TRANS for numbers 000020 and up
  327.  ÿÂms451$,ms452$,140,a%
  328.  ÿ¡a%ÿp
  329. ÿÊÿË"Updating TRANS file"
  330. ÿ™"TRANS"
  331. ÿ£Transaction ref
  332. ÿÍCert_Sent_yn.TRANSÿ"n":Invoice_Sent_yn.TRANSÿ"n"ÿÐTransaction ref.TRANSÿ20
  333. ÿ’ÿÍ
  334.  ÿ’ÿ¡
  335.  ÿÃ
  336.  
  337. m5:ÿ½ ma%=5 Query menu options
  338.  ÿßÿ³:ÿ²"z-9999999.00"
  339.  ÿÉÿæmb%
  340.  ÿæ1:ÿ½ Query Run
  341. ÿvsdorp
  342. ÿ¡a%ÿp
  343. ÿ¡p$ÿ"p"ÿp
  344. ÿ{ÿiÿqÿh
  345. ÿ^
  346. ÿ{ÿi
  347. ÿÊÿËss14$
  348. ÿÏÿ¥ÿÿß
  349. ÿ’ÿ¡
  350. ÿœ
  351. ÿ’ÿ¡
  352.  ÿæ2:ÿ½ Query New
  353. ÿÊÿËss15$
  354. ÿ³ÿ_ÿwmqerror
  355. ÿ°ÿi
  356. ÿÿi
  357.  ÿæ3:ÿ½ Query Open
  358. ÿÂms23$,"",14,a%,q$
  359. ÿ¡a%ÿpÿ¨ÿiq$
  360.  ÿæ4:ÿ½ Query Edit
  361. ÿÊÿËss15$
  362. ÿ³ÿ_ÿwmqerror
  363. ÿÿi
  364.  ÿæ5:ÿ½ Query Save
  365. ÿÂms24$,"",14,a%,q$
  366. ÿ¡a%ÿpÿÅÿiq$
  367.  ÿ’ÿÉ
  368.  ÿ¡mb%ÿ2ÿpmb%ÿ1:ÿwm5:ÿ½ if New query then Run
  369.  
  370. mqerror: ÿ½ Trap for errors generated from Query dialog
  371.  ÿ³ÿ_ÿwferror
  372.  ÿ²"z-99999.00"
  373.  ÿwmloop
  374.  
  375. m6:ÿ½ ma%=6 Reports menu options
  376.  ÿvsdorp: ÿ¡a%ÿ0ÿpÿwmloop
  377.  ÿ³mb%ÿwm61,m62,m63,m64,mloop,m66,m67,m68
  378.  
  379. m61:ÿ„"stkrte"
  380. m62:ÿ„"stkrhe"
  381. m63:ÿ„"stkrle"
  382. m64:ÿ„"stkrre"
  383. m66:ÿ„"stkrne"
  384. m67:ÿ„"stkrbe"
  385. m68:ÿ„"stkrce"
  386.  
  387. sdorp:ÿ½ Select d=display p=print
  388.  p$ÿ"d"
  389.  ÿÂms17$,"",4,a%,p$,1
  390.  ÿ¡ÿO(p$ÿ"[pd]")ÿwsdorp
  391.  ÿ¡a%ÿp
  392. p$ÿÿ=(p$)
  393. ÿ¡p$ÿ"d"ÿpÿÊÿËss7$ÿ^ÿÊÿËss6$:ÿ¹;
  394.  ÿ’ÿ¡
  395.  ÿÃ
  396.  
  397. stkf:ÿ½ File Clients, Stocks, Transactions 
  398. ÿ½ Documents Statements
  399.  fst%ÿ0:cli%ÿ1:stk%ÿ2:sta%ÿ3:tra%ÿ5:k%ÿ1:t%ÿ0
  400.  ÿ½ Set option parameters
  401.  ÿÉÿæmb%
  402.  ÿæcli%:ÿ½ File Clients
  403. f$ÿ"clients":fkey$ÿ"Customer_Ref":fmd$ÿ"stkc":fmp$ÿ"stkc"
  404.  ÿæstk%:ÿ½ File Stocks
  405. f$ÿ"stocks":fkey$ÿ"Stock_Key":fmd$ÿ"stks":fmp$ÿ"stks"
  406.  ÿæsta%:ÿ½ Documents Statements
  407. f$ÿ"clients":fkey$ÿ"Customer_Ref":fmd$ÿ"stkos":fmp$ÿ"stkos"
  408.  ÿætra%:ÿ½ File Transactions
  409. f$ÿ"trans":fkey$ÿ"Transaction ref":fmd$ÿ"stkt":fmp$ÿ"stkt":k%ÿ2
  410.  ÿ’ÿÉ
  411.  
  412.  ÿ™f$
  413.  ÿ£fkey$
  414.  ÿ¡ÿœÿfmd$ÿpÿ´ÿœfmd$
  415.  ind$ÿÿ£
  416.  ÿvsset
  417.  
  418.  ÿ½ File forms have command only on page 1 to select form on selkey 
  419.  ÿ¡mb%ÿsta%ÿpÿœ2
  420.  ÿwfwait 
  421.  
  422. floop:ÿ½ Re-display form
  423.  ÿvsset
  424.  ÿvssearch
  425.  ÿÎ
  426.  
  427. fwait:ÿ½ Wait here for form pushbutton 
  428.  ed%ÿ1
  429.  ÿÊÿËss2$
  430.  ÿÏÿß
  431.  ÿwfwait
  432.  
  433. fedit:ÿ½ Edit pushbutton
  434.  ÿÊÿËss4$
  435.  ÿ¡mb%ÿtra%ÿpoamt%ÿTotal_Due.TRANS
  436.  ÿßÿ³:ÿ”3,0
  437.  
  438. fedit2: 
  439.  ÿßÿe
  440.  ÿÂms1$,"",127,a%
  441.  ÿ¡a%ÿ1ÿp
  442. ÿÌ:ÿ½ Stores edited data 
  443. ÿ¡mb%ÿtra%ÿpamt%ÿTotal_Due.TRANSÿoamt%:ÿvsupdate
  444.  ÿ^
  445. ÿÉÿœÿY:ÿ½ Re-dispay form as before edit 
  446.  ÿ’ÿ¡
  447.  ÿwfloop
  448.  
  449. fenter: ÿ½ Enter pushbutton
  450.  ÿÿœ:ed%ÿ0
  451.  ÿ¡mb%ÿtra%ÿp
  452. Trans_Type ÿ"b":del%ÿ0:ÿÊÿËss18$
  453.  ÿ^
  454. ÿ¡mb%ÿcli%ÿpClass.CLIENTSÿ"P"
  455. ÿÊÿËss3$
  456.  ÿ’ÿ¡
  457.  ÿßÿ³:ÿ”3,0
  458.  
  459. fenter2: 
  460.  ÿßÿe
  461.  b%ÿ0
  462.  ÿÂms1$,"",127,a%
  463.  ÿ¡a%ÿp
  464. ÿÌ:ÿ½ Store new record
  465. del%ÿ0
  466. ÿ¡mb%ÿtra%ÿpamt%ÿTotal_Due.TRANS: ÿvsupdate
  467. ÿÂms2$,"",130,b%
  468.  ÿ^
  469. ÿÉÿœÿY:ÿ½ Re-display current form
  470.  ÿ’ÿ¡
  471.  ÿ¡b%ÿpÿwfenter 
  472.  ÿœ2
  473.  ÿwfloop 
  474.  
  475. fdelete:ÿ½ Delete pushbutton
  476.  del%ÿ1
  477.  ÿ¡mb%ÿtra%ÿp
  478. ÿ½ Clients, Stocks, test for related transactions, if so set del%=0
  479. ÿÊÿËss16$
  480. ÿ™"trans"
  481. skey$ÿckey$
  482. ÿ¡mb%ÿcli%ÿpÿ£Customer_Ref.TRANS
  483. ÿ¡mb%ÿstk%ÿpÿ£Stock_Key.TRANS
  484. ÿÉÿ¥skey$
  485. ÿ¡ÿC("")ÿpdel%ÿ0
  486. ckey$ÿskey$
  487. ÿ™f$
  488.  ÿ’ÿ¡
  489.  ÿ¡del%ÿ1ÿp
  490. ÿÂms14$,"",119,a%
  491. ÿ¡a%ÿp
  492. ÿ¡mb%ÿtra%ÿpamt%ÿÿTotal_Due.TRANS:ÿvsupdate
  493. ÿÉÿ¾
  494. ÿ’ÿ¡
  495.  ÿ^
  496. ÿÂms19$,ms20$,100,a%
  497.  ÿ’ÿ¡
  498.  ÿ¡del%ÿ0ÿwfwait
  499.  ÿÉÿœÿ¥ind$$
  500.  ÿwfloop 
  501.  
  502. fswitch:ÿ½ Assign key from transaction and get form/record
  503.  mp%ÿ0
  504.  ÿÊÿËss21$
  505.  ÿÏÿß
  506.  ÿ¡(mp%ÿ0ÿmp%ÿ10)ÿpÿwfswitch
  507.  ÿÉÿœÿ"mp%
  508.  
  509. fswitch2:ÿ½ Entry from Trans form: no need to select line
  510.  ÿÉÿæmb%
  511.  ÿæcli%
  512. selkey$ÿCustomer_Ref.TRANS
  513.  ÿæstk%
  514. selkey$ÿStock_Key.TRANS
  515.  ÿætra%
  516. selkey%ÿTransaction ref.TRANS
  517.  ÿ’ÿÉ
  518.  ÿwstkf
  519.  
  520. fexit:ÿ½ Exit pushbutton
  521.  ÿwmloop
  522.  
  523. stexit: 
  524.  ÿÃ
  525.  
  526. supdate:ÿ½ When transaction changes, update balance in Client record
  527.  ÿÊÿËss17$
  528.  ÿ™"clients"
  529.  ÿ£Customer_Ref.CLIENTS
  530.  ÿÉÿ¥Customer_Ref
  531.  ÿ¡ÿC("")ÿp
  532. Trading_Balance.CLIENTSÿTrading_Balance.CLIENTSÿamt%
  533. ÿÌ
  534.  ÿ^
  535. ÿÂms18$,"",100,a%
  536.  ÿ’ÿ¡
  537.  ÿ™f$
  538.  ÿÃ
  539.  
  540. sindex:ÿ½ Index pushbutton
  541.  ÿÂms7$,"",7,a%,ind$
  542.  ÿ¡a%ÿp
  543. ÿ£ind$
  544. ÿvssearch
  545.  ÿ’ÿ¡
  546.  ÿÎ
  547.  ÿÃ
  548.  
  549. spanel:ÿ½ Browse pushbutton
  550.  ÿ³ÿ_ÿwserror
  551.  err%ÿ0
  552.  ss5$ÿss10$ÿind$ÿss11$
  553.  ÿÊÿËss5$
  554.  
  555. spanel2: 
  556.  ÿÏÿâ
  557.  ÿ³ÿ_ÿwferror
  558.  ÿÉÿÐ
  559.  ÿ¡err%ÿ1ÿpÿ‚ÿ³
  560.  ÿvsset
  561.  ÿÃ
  562.  
  563. serror: ÿ‚ÿe:ÿ½ Error trap for Wait Panel errors
  564.  ÿÂÿ((ÿ&),"",2,a%
  565.  err%ÿ1
  566.  ÿÉÿœÿY:ÿyspanel2
  567.  
  568. sprint:ÿ½ Print pushbutton
  569.  b$ÿ"c":c%ÿ0
  570.  ÿÂms16$,"",4,a%,b$,1
  571.  ÿ¡a%ÿ0ÿpÿÃ
  572.  ÿ¡ÿO(b$ÿ"[csa]")ÿpÿwsprint
  573.  b$ÿÿ=(b$)
  574.  ÿ¡mb%ÿcli%ÿpÿÂms13$,"",135,c%
  575.  
  576.  ÿÊÿËss6$
  577.  ÿ½ OPEN FORM fmp$:REM Open special print form
  578.  ÿ¡b$ÿ"c"ÿp
  579. ÿvssearch
  580. ÿvssprint
  581. ÿ½ OPEN FORM fmd$
  582. ÿvssearch
  583.  ÿ^
  584. ÿ¡b$ÿ"s"ÿpÿÉÿœÿÐÿ~
  585. ÿÉÿœÿ`
  586. ÿØÿOÿB(f$)
  587. ÿvssprint 
  588. ÿÉÿœÿ±
  589. ÿÙ
  590. ÿÉÿÐ
  591. ÿ;
  592. ÿ½ OPEN FORM fmd$
  593. ÿÉÿ`
  594.  ÿ’ÿ¡
  595.  ÿÎ
  596.  ÿÃ
  597.  
  598. ssprint:ÿ½ print required pages
  599.  ÿÉÿæmb%
  600.  ÿæcli%
  601. ÿœ2:ÿ¹ÿYÿí
  602. ÿ¡c%ÿpÿœÿÈ3:ÿ¹ÿYÿí
  603. ÿœ4:ÿ¹ÿYÿí
  604.  ÿæstk%
  605. ÿœ2:ÿ¹ÿYÿí
  606. ÿœ3:ÿ¹ÿYÿí
  607. ÿœ4:ÿ¹ÿYÿí
  608.  ÿætra%
  609. ÿœ2:ÿ¹ÿYÿí
  610.  ÿæsta%
  611. ÿ¹ÿYÿí
  612.  ÿ’ÿÉ
  613.  ÿÃ
  614.  
  615. sset:ÿ½ Stores unique value for record in ckey
  616.  ÿ¡k%ÿ1ÿpckey$ÿfkey$$
  617.  ÿ¡k%ÿ2ÿpckey%ÿfkey$$
  618.  ÿÃ
  619.  
  620. ssearch:ÿ½ Gets unique record even if index has duplicate keys
  621.  ÿÉÿœÿ¥ind$$
  622.  
  623. ssearch2: ÿ½ Loop until correct record found
  624.  ÿ¡k%ÿ1ÿpÿ¡fkey$$ÿckey$ÿpÿÃ
  625.  ÿ¡k%ÿ2ÿpÿ¡fkey$$ÿckey%ÿpÿÃ
  626.  ÿÉÿœÿ±
  627.  ÿwssearch2
  628.  
  629. ferror:ÿ½ General error trap 
  630.  res%ÿ0
  631.  ÿ¡ÿ&ÿ11ÿp
  632. ÿÂms21$,ms22$,130,a%:ÿ¡a%ÿ1ÿpres%ÿ1
  633.  ÿ^ÿ¡ÿ&ÿ57ÿp
  634. ÿÂms8$,"",2,a%:res%ÿ2
  635.  ÿ^
  636. ÿÂÿ((ÿ&),ms9$,114,a%:ÿ¡a%ÿ1ÿpres%ÿ3
  637.  ÿ’ÿ¡
  638.  ÿ¡res%ÿ1ÿpÿy
  639.  ÿ¡res%ÿ2ÿpÿyfloop
  640.  ÿ¡res%ÿ3ÿpÿymloop
  641.  ÿ
  642.  
  643.  
  644.